
$(document).ready(function(){
		$('#next').click(function(){
								 $s_top = parseInt($('#slider-box').css('top'));
								 $p_height = $('.panel').height()
								 $s_height = $('#slider-box').height()
								 $val =  $s_top - $p_height;
								 //alert($val);
								 //$('#slider-box').css('top',  $val);
								 $diff = $val + $s_height;
								 //alert($diff);
								 if ( $diff > 0 ) $('#slider-box').animate({top:  $val}, 1000);
								 });
		$('#prev').click(function(){
								 $s_top = parseInt($('#slider-box').css('top'));
								 $p_height = $('.panel').height()
								 $s_height = $('#slider-box').height()
								 $val =  $s_top + $p_height;
								 $diff = $val + $s_height;
								 alert($diff);
								 //$('#slider-box').css('top',  $val);
								  if ( $diff > 0 ) $('#slider-box').animate({top:  $val}, 1000);
								 });
		   });
